package com.gitee.feizns.explore.data_structure.linked_list.singly.copy_random_list;

/**
 * @author feizns
 * @since 2019/10/10
 */
public class Node {

    int val;
    Node next;
    Node random;

    public void print() {
        for (Node tmp = this; tmp != null; tmp = tmp.next) {
            System.out.print(tmp.val + ",");
        }
        System.out.println();
    }

    public Node(int val) {
        this.val = val;
    }
}
